using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class HPBarDisplay : MonoBehaviour
{
    Image hpbar;

    // Start is called before the first frame update
    void Start()
    {
        hpbar = transform.Find("FullHP").GetComponent<Image>();
    }

    public void HPBar(float hp)
    {
        hpbar.fillAmount = hp;
    }
}
